package com.ruoyi.business.domain.dto;

import java.io.Serializable;
import java.util.List;

/**
 * 列车座位层级结构DTO
 */
public class TrainSeatHierarchyDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 列车分组
     */
    public static class TrainGroup implements Serializable {
        private static final long serialVersionUID = 1L;

        /** 车次编号 */
        private String trainCode;

        /** 车厢列表 */
        private List<CarriageGroup> carriages;

        public String getTrainCode() {
            return trainCode;
        }

        public void setTrainCode(String trainCode) {
            this.trainCode = trainCode;
        }

        public List<CarriageGroup> getCarriages() {
            return carriages;
        }

        public void setCarriages(List<CarriageGroup> carriages) {
            this.carriages = carriages;
        }
    }

    /**
     * 车厢分组
     */
    public static class CarriageGroup implements Serializable {
        private static final long serialVersionUID = 1L;

        /** 车厢序号 */
        private Long carriageIndex;

        /** 座位列表 */
        private List<com.ruoyi.business.domain.TrainSeat> seats;

        public Long getCarriageIndex() {
            return carriageIndex;
        }

        public void setCarriageIndex(Long carriageIndex) {
            this.carriageIndex = carriageIndex;
        }

        public List<com.ruoyi.business.domain.TrainSeat> getSeats() {
            return seats;
        }

        public void setSeats(List<com.ruoyi.business.domain.TrainSeat> seats) {
            this.seats = seats;
        }
    }
}